package com.cjs.gaiJinGongChangFangFa;

public class Client {
	
	public static void main(String[] args) throws Exception{
		Factorys.config(ProductA.class, FactoryA.class);
		Factorys.config(ProductB.class, FactoryB.class);
		Factory<Product> f_A = Factorys.getFactory(ProductA.class);
		Factory<Product> f_B = Factorys.getFactory(ProductB.class);
		
		f_A.newInstance().run();
		f_B.newInstance().run();
	}
}
